Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Treq for Twisted integration #106

Closed
wants to merge 1 commit into from
Closed

Use Treq for Twisted integration #106

wants to merge 1 commit into from

Conversation

zgoda-mobica
Copy link
Contributor

Treq is requests-like library for Twisted made by Twisted developers. This branch contains complete rewrite of Twisted support code that uses Treq for web requests.

This was referenced Mar 25, 2016
@brianr
Copy link
Member

brianr commented Mar 25, 2016

Thanks @zgoda-mobica ! We will review this in the coming week.

r = requests.Response()
r.status_code = resp.code
r.headers.update(resp.headers.getAllRawHeaders())
return treq.content(response).addCallback(post_data_cb, r)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is breaking for me here. Did you mean to write return treq.content(resp).addCallback(post_data_cb, r)? I think that should do what you intended.

@ezarowny
Copy link
Contributor

Merged in #109

@ezarowny ezarowny closed this Apr 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants